package Modele;

public class Case {

	private int Texture;
	private Contenu contenu;
	
	public Case(int t) {
		this.Texture = t;
	}
	
	public void setContenu(Contenu c) {
		this.contenu = c;
	}
	
	public Contenu getContenu() {
		return this.contenu;
	}
	
	public int getTexture() {
		return this.Texture;
	}
	
	public Boolean isDispo() {
		return (this.Texture != 1 && this.contenu == null);
	}
	
	public String toString() {
		if (this.contenu != null)
			return this.contenu.toString();
		else 
			return "Case vide !";
	}

}
